package com.usian.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName tb_item
 */
@Data
@ApiModel //用对象来接收参数
public class TbItem implements Serializable {
    /**
     * 商品id，同时也是商品编号
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "id",dataType = "Long",value = "商品主键" )
    private Long id;

    /**
     * 商品标题
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "title",dataType = "String",value = "商品名称") //用对象接收参数时，描述对象的一个字段
    private String title;

    /**
     * 商品卖点
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "sellPoint",dataType = "String",value = "商品卖点")
    private String sellPoint;

    /**
     * 商品价格，单位为：分
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "price",dataType = "Long",value = "商品价格")
    private Long price;

    /**
     * 库存数量
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "num",dataType = "Integer",value = "商品数量")
    private Integer num;

    /**
     * 商品条形码
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "barcode",dataType = "String",value = "商品条形码")
    private String barcode;

    /**
     * 商品图片
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "image",dataType = "String",value = "商品图片")
    private String image;

    /**
     * 所属类目，叶子类目
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "cid",dataType = "Long",value = "商品所属类目")
    private Long cid;

    /**
     * 商品状态，1-正常，2-下架，3-删除
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "status",dataType = "Byte",value = "商品状态")
    private Byte status;

    /**
     * 创建时间
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "created",dataType = "Date",value = "商品创建时间")
    private Date created;

    /**
     * 更新时间
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    @ApiModelProperty(name = "updated",dataType = "Date",value = "商品更新时间")
    private Date updated;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table tb_item
     *
     * @mbg.generated Sat Jan 09 17:19:49 CST 2021
     */
    private static final long serialVersionUID = 1L;
}